package com.cmc.cloud.cmclink.doc.vo.special.dgcommoditypsnvo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Length;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 危险品品名子表库 Base VO，提供给添加、修改、详细的子 VO 使用 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 * 
 * @author codegen
 */
@Data
public class DgCommodityPsnBaseVO {

    @Schema(description = "品名主信息ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17573")
    @NotNull(message = "dgcommoditypsn.mainId.notnull")
    private Long mainId;

    @Schema(description = "正式运输名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "dgcommoditypsn.psn.notnull")
    @Length(max = 300, message = "dgcommoditypsn.psn.max.length")
    private String psn;

}
